﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ToolRecordAdd.aspx.cs"
    MasterPageFile="~/Site1.master" Inherits="WebApplication1.RecordManagement.ToolRecordAdd" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div style="width: 100%; text-align: left;">
        <br />
        <br />
        <div style="width: 85%; border: solid 1px black; margin: 0 auto;">
            <p style="text-align: center">
                &nbsp;&nbsp; 选择要管理信息类型：<asp:DropDownList ID="DDL_RecordMode" runat="server" AutoPostBack="True"
                    OnSelectedIndexChanged="DDL_RecordMode_SelectedIndexChanged">
                </asp:DropDownList>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </p>
            <hr />
            <br />
            <asp:Panel ID="Panel1" runat="server" Width="55%" Style="text-align: center; margin: 0 auto;">
                <div style="width: 652px; text-align: center; border: 1px solid Black;">
                    <table style="width: 100%; border: solid 1px black; margin: 0 auto;">
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                日期：
                            </td>
                            <td>
                                <asp:TextBox ID="Tb_RecordDate" runat="server" TabIndex="1"></asp:TextBox><span id="SpanTRD"
                                    style="color: Red;" runat="server">*</span>
                                <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="Tb_RecordDate"
                                    Enabled="true" Format="yyyy/MM/dd">
                                </asp:CalendarExtender>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Tb_RecordDate"
                                    ErrorMessage="*" ValidationGroup="VGroup1" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                车间：
                            </td>
                            <td>
                                <asp:DropDownList ID="DDL_WorkShop" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                类别：
                            </td>
                            <td>
                                <asp:DropDownList ID="DDL_ToolType" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                应用产品：
                            </td>
                            <td align="center">
                                <asp:RadioButtonList ID="RBL_ProductType" runat="server" RepeatDirection="Horizontal"
                                    AutoPostBack="True" OnSelectedIndexChanged="RBL_ProductType_SelectedIndexChanged">
                                    <asp:ListItem Selected="True">通用</asp:ListItem>
                                    <asp:ListItem>专用</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                应用产品：
                            </td>
                            <td>
                                <asp:TextBox ID="Tb_ProductType" runat="server" Enabled="False">通用</asp:TextBox><span
                                    id="SpanTPY" style="color: Red;" runat="server">*</span>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Tb_ProductType"
                                    ErrorMessage="*" ValidationGroup="VGroup1" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                应用产品代码：
                            </td>
                            <td>
                                <asp:TextBox ID="Tb_ProductTypeName" runat="server" Enabled="False">通用</asp:TextBox><span
                                    id="SpanTPYN" style="color: Red;" runat="server">*</span>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="Tb_ProductTypeName"
                                    ErrorMessage="*" ValidationGroup="VGroup1" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                         <td>
                                代码：
                            </td>
                            <td>
                                <asp:TextBox ID="Tb_ToolCode" runat="server" AutoPostBack="True" OnTextChanged="Tb_ToolCode_TextChanged"></asp:TextBox><span
                                    id="SpanTTC" style="color: Red;" runat="server">*</span>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="Tb_ToolCode"
                                    ErrorMessage="*" ValidationGroup="VGroup1" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                          
                        </tr>
                        <tr>
                             <td>
                                名称：
                            </td>
                            <td>
                                <asp:TextBox ID="Tb_ToolName" runat="server"></asp:TextBox><span id="SpanTTN" style="color: Red;"
                                    runat="server">*</span>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Tb_ToolName"
                                    ErrorMessage="*" ValidationGroup="VGroup1" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                型号规格：
                            </td>
                            <td>
                                <asp:TextBox ID="Tb_ToolTypeSpec" runat="server"></asp:TextBox><span id="SpanTTS"
                                    style="color: Red;" runat="server">*</span>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="Tb_ToolTypeSpec"
                                    ErrorMessage="*" ValidationGroup="VGroup1" ForeColor="Red"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                启用编号：
                            </td>
                            <td>
                                <asp:TextBox ID="Tb_EnableSN" AutoPostBack="True"  runat="server" 
                                    ontextchanged="Tb_EnableSN_TextChanged"></asp:TextBox>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <%--  <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="Tb_EnableSN"
                                    ErrorMessage="*" ValidationGroup="VGroup1" ForeColor="Red"></asp:RequiredFieldValidator>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="Tb_EnableSN"
                                    ErrorMessage="*" ValidationGroup="VGroup2" ForeColor="Red"></asp:RequiredFieldValidator>--%>
                            </td>
                            <td>
                                <asp:Button ID="Btn_EnableSN_Add" runat="server" Text="启用编号增加" ValidationGroup="VGroup2"
                                    OnClick="Btn_EnableSN_Add_Click" TabIndex="2" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                数量：
                            </td>
                            <td>
                                <asp:TextBox ID="Tb_Amount" runat="server"></asp:TextBox><span id="SpanTAT" style="color: Red;"
                                    runat="server">*</span>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Tb_Amount"
                                    ErrorMessage="*" ValidationExpression="^[0-9]*$" ValidationGroup="VGroup1"></asp:RegularExpressionValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="Tb_Amount"
                                    ErrorMessage="*" ValidationExpression="^[0-9]*$" ValidationGroup="VGroup2"></asp:RegularExpressionValidator>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                              <%--  <asp:Label ID="Lbl_EnableSN" runat="server"></asp:Label>--%>
                              <asp:TextBox ID="Lbl_EnableSN" TextMode="MultiLine" Height="90px" Width="215px"
                               runat="server" Visible="False" AcceptsReturn="True" TextWrapping="Wrap"></asp:TextBox>
                              
                                <asp:ListBox ID="Lb_EnableSN" runat="server" Visible="False"></asp:ListBox>
                              
                            </td>
                            <td>
                                <span id="Span1" style="color: Red;"
                                    runat="server"  Visible="False">注意:修改<br />启用编码<br />
                                     需用","分隔<br /> 如:启用编号1,<br />启用编号2,</span>
                                   <br />
                                    <asp:Button ID="ButEditor" runat="server" Text="修改启用编号" Click="Btn_EnableSN_Editor__Click"
                                    OnClick="ButEditor_Click" Visible="False"/>
                               
                            </td>
                        </tr>
                        <tr>
                            <td>
                                领用人：
                            </td>
                            <td>
                                <asp:TextBox ID="Tb_Taker" runat="server"></asp:TextBox><span id="SpanTT" style="color: Red;"
                                    runat="server">*</span>
                                <asp:RequiredFieldValidator ID="rfv_Taker" runat="server" ControlToValidate="Tb_Taker"
                                    ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                领用人工号：
                            </td>
                            <td>
                                <asp:TextBox ID="Tb_Taker_ID" runat="server"></asp:TextBox><span id="SpanTId" style="color: Red;"
                                    runat="server">*</span>
                                <asp:RequiredFieldValidator ID="rfv_Taker_ID" runat="server" ControlToValidate="Tb_Taker_ID"
                                    ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                分布区域：
                            </td>
                            <td>
                                <asp:DropDownList ID="DDL_DistributionArea" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                状态：
                            </td>
                            <td>
                                <asp:DropDownList ID="DDL_ToolState" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                修复记录：
                            </td>
                            <td>
                                <asp:DropDownList ID="DDL_RepairRecord" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                备注
                            </td>
                            <td>
                                <asp:TextBox ID="Tb_Remark" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                <asp:Button ID="Btn_ToolRecord_Add" runat="server" Text="记录提交" OnClick="Btn_ToolRecord_Add_Click"
                                    ValidationGroup="VGroup1" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </div>
                <br />
                <br />
            </asp:Panel>
        </div>
    </div>
</asp:Content>
